#!/bin/bash

preurl=azurepre.southeastasia.cloudapp.azure.com
produrl=app.tls4.io
qcurl=dev2-tls.y3technologies.com
for service in `cat /root/script/checkver.txt`
do
  echo "service=$service"
  if [ $service == "mobile" ];then
    #curl https://$qcurl/lova-qc/sto/api/v1/service/version/mobile
    #curl https://$preurl/sto/api/v1/service/version/mobile
    curl https://$produrl/sto/api/v1/service/version/mobile
  else
    #curl https://$qcurl/lova-qc/$service/api/v1/service/version
    #curl https://$preurl/$service/api/v1/service/version
    curl https://$produrl/$service/api/v1/service/version
  fi
done
